﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Colorful.Control.Services;
using Colorful.Control;
using System.Windows;

namespace Colorful.Test.Unit
{
    [TestClass]
    public class AdobeClipboardFormatterTest
    {
        [TestMethod]
        public void CopyPaletteTest()
        {
            var target = new AdobeClipboardFormatter();
            var palette = new Palette();
            var dataObject = new DataObject();
            palette.Name = "My palette";           
            target.AddToClipboard(dataObject, palette);
            Clipboard.SetDataObject(dataObject);
            Assert.IsTrue(Clipboard.GetDataObject().GetDataPresent((target.FormatName)));
        }
    }
}
